package org.ioriframework.plugin.maven;

/**
 * 常量类
 * @author iori
 *
 */
public class Constants {
	
	/**
	 * 空格
	 */
	public static final String SPACE = " ";
	
	/**
	 * 时间格式 yyyy-MM-dd HH:mm:ss
	 */
	public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
	
	/**
	 * 默认打包环境
	 */
	public static final String DEFAULT_ENV = "sit";
	
	/**
	 * 打包命令
	 */
	public static final String COMMAND_PACKAGE = "clean package -Dmaven.test.skip={0} -Pwas,{1}";
	
	/**
	 * clean install命令
	 */
	public static final String COMMAND_CLEAN_INSTALL = "clean install -Dmaven.test.skip={0}";
	
	/**
	 * Jetty启动命令
	 */
	public static final String COMMAND_JETTY_RUN = "jetty:run";
	
	/**
	 * Jetty停止命令
	 */
	public static final String COMMAND_JETTY_STOP = "jetty:stop";
	
	/**
	 * 首选项存储KEY: EAR的输出目录
	 */
	public static final String STORE_KEY_EAR_TARGET = "earTarget";
	
	/**
	 * 首选项存储KEY: EAR的文件名
	 */
	public static final String STORE_KEY_EAR_FILE_NAME = "earFileName";
	
	/**
	 * 线程池大小
	 */
	public static final int EXECUTOR_SIZE = 4;
	
	public static final String ACTION_TEXT_REMOVE = "Remove Console";
	
	public static final String ACTION_TEXT_REMOVEALL = "Remove All Terminated Console";
	
	public static final String ACTION_TEXT_TERMINATE = "Terminate Running Jetty Server";
	
	/**
	 * 首选项配置(Maven目录)
	 */
	public static final String P_MAVEN_HOME = "maven_home";
	
	/**
	 * 首选项配置(日志输出字符集)
	 */
	public static final String P_LOG_ENCODING = "log_encoding";
	
	/**
	 * 首选项配置(跳过单元测试)
	 */
	public static final String P_SKIP_TEST = "skip_test";
	
	/**
	 * java进程名
	 */
	public static final String JAVA_PROCESS_NAME = "java";

}
